#ifndef CCONSUMENUTRITION_H
#define CCONSUMENUTRITION_H

#include <QObject>
#include "cobject.h"

namespace cooking {

class CConsumeNutrition : public CObject
{
    Q_OBJECT
    Q_PROPERTY(int consumeId READ consumeId WRITE setConsumeId NOTIFY consumeIdChanged)
    Q_PROPERTY(int nutritionId READ nutritionId WRITE setNutritionId NOTIFY nutritionIdChanged)
    Q_PROPERTY(double quantity READ quantity WRITE setQuantity NOTIFY quantityChanged)
public:
    explicit CConsumeNutrition(QObject *parent = 0);

    int consumeId();
    void setConsumeId(int consumeId);

    int nutritionId();
    void setNutritionId(int nutritionId);

    double quantity();
    void setQuantity(double quantity);

signals:
    void consumeIdChanged();
    void nutritionIdChanged();
    void quantityChanged();

public slots:

private:
    int m_consume_id;
    int m_nutrition_id;
    double m_quantity;
};
} // namespace cooking
#endif // CCONSUMENUTRITION_H
